<?php

namespace App\Models;


class ArticleSite extends Base
{

    // 文章股票
    protected $table = 'article_site';
    const UPDATED_AT = null;

    // 缓存字段，用于搜索绑定的字段
    protected $cacheFields = ['id', 'article_id', 'domain_id'];

    // 定义验证操作
    public function rules()
    {

        $add = [
        ];

        $edit = [
        ];

        $info = [
        ];


        $rule = [
            'domain_id' => 'required|numeric',
            'article_id'   => 'required|numeric',
            //'status'     => 'required',
        ];


        $msg = [
            'id'        => '自编号',
            'article_id'   => '文章ID',
            'domain_id' => '域名ID',
            'status'    => '状态 1-正常 0-禁用',
            'ctime'     => '创建时间',
        ];

        return ['rule' => $rule, 'msg' => $msg, 'add' => $add];
    }
}
